package com.yc.damai.dao;

import java.util.List;

import com.yc.damai.bean.User;
import com.yc.damai.util.DBHelper;

public class UserDao {

	public List<User> selectForLogin(String username, String password) {
		String sql = "select * from user where username=? and password=?";
		return (List<User>) DBHelper.query(sql, User.class, username, password);
	}

}
